<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:py="http://genshi.edgewall.org/"
	xmlns:xi="http://www.w3.org/2001/XInclude" py:strip="">
<py:def function="submit_filter(element='', connect_to=[])">
	<script language="JavaScript" type="">
		var conn = MochiKit.Signal.connect;
		function submit_filter() {
  		getElement('${element}').submit();
		}
		function hookUpFilterSubmission () {
		<py:for each="select in connect_to">
			connect('${select}', 'onchange', submit_filter);
		</py:for>
		}
		conn(window, 'onload', hookUpFilterSubmission);
	</script>
</py:def>
<xi:include href="sitetemplate.html"><xi:fallback/></xi:include>
<!-- submit_filter(element='', connect_to=[]) -->


<head py:match="head" py:attrs="select('@*')">
    <meta py:replace="select('*')"/>
</head>

<body py:match="body" py:attrs="select('@*')" id="document"
	class="tab-gray applicationhome">
<div id="nonhelp">

<div id="content">
 <div id="mainarea">
  <div class="v">
   <div class="w">
    <div class="x">
     <div class="y">
      <div class="z">
        <ul py:if="this.has_parent" id="applicationchooser">
      		<py:if test="tg.identity.user.biller">${tab('biller')}</py:if>
      		<py:if test="tg.identity.user.biller">${tab('customers')}</py:if>
      		${tab('projects')}
      		<py:if test="tg.identity.user.biller">${tab('invoices')}</py:if>
      	</ul>
	    <div id="container">
	     <div id="maincontent">
		  <div>
		   <div>
		    <div id="status_block" py:if="tg_flash" class="flash" py:content="tg_flash"></div>
			<div py:for="js in tg_js_bodytop" py:replace="ET(js.display())" />
			<div py:replace="select('*|text()')" />
			<div py:for="js in tg_js_bodybottom" py:replace="ET(js.display())" />
		   </div>
		   <div class="visualClear">&nbsp;</div>
		  </div>
	     </div>
	     <div id="portlets">
	     	${portlet_action()}
	     	${portlet_login()}
	     	${portlet_tginvoice()}
	     </div>
		 <div class="clear"></div>
	    </div><!-- maincontent -->
		<div class="clear"></div>
	   </div><!-- container -->
	  </div><!-- z -->
	 </div><!-- y -->
	</div><!-- x -->
   </div><!-- w -->
  </div><!-- v -->
 </div><!-- mainarea -->
</div><!-- content -->

<div><table class="footer"><tr><td></td></tr></table>
<div id="copyright">
	Copyright ${this.release.copyright}
</div><!-- copyright -->
</div><!-- nonhelp -->

<!--<script type="text/javascript">-->
<!--createLoggingPane(true);-->
<!--</script>-->
</body>
</html>
